package com.chixing.service;

import com.chixing.pojo.Car;
import com.chixing.util.ServerResponse;

import java.util.Date;

public interface CarService {
    public ServerResponse getAll();
    // 获得车辆详情
    public ServerResponse getCarDetail(Integer carId);
    // 多条件动态查询
    public ServerResponse getCarByContain(String carType,
                                          String carBrand,
                                          Float minCarDailyPrice,
                                          Float maxCarDailyPrice,
                                          String carShiftType,
                                          Integer carSeatNumber,
                                          String orderBy,
                                          Integer pageNum);
    // 查询热门车辆 获取最热门的四辆车推荐到主页
    public ServerResponse getHotCarToIndex();

    // 根据车型查找店铺
    public ServerResponse getStoreByCarIdAndStoreCity(Integer carId,String storeCity);


    public ServerResponse getStoreByCarIdAndStoreArea(Integer carId,String storeArea);
//    多条件查询加上根据   车型的取车时间查询  即取车时间大于车型的最近还车时间就可以租借
    public ServerResponse getCarByContainAndDate(Integer storeId,
                                                 Date getCarTime,
                                                 String carType,
                                                 String carBrand,
                                                 Float minCarDailyPrice,
                                                 Float maxCarDailyPrice,
                                                 String carShiftType,
                                                 Integer carSeatNumber,
                                                 String orderBy,
                                                 Integer pageNum);


    public Car getById(Integer carId);
}
